package cn.example.project1.service;

import cn.example.base.service.BaseService;
import cn.example.project1.po.Msg;

import java.io.IOException;
import java.util.List;

/**
 * Created by WuYB on 2017/6/19.
 */
public interface MsgService extends BaseService<Msg> {
    /**
     * 事务Demo
     *
     * @param list 测试List
     * @return boolean
     */
    boolean insertList(List<Msg> list) throws IOException;

    /**
     * 嵌套事务Demo
     *
     * @param list 测试List
     * @return boolean
     */
    boolean insertLists(List<Msg> list) throws IOException;
}
